
#line 1 "..\GETLINE.C" /0




 
  
#line 1 "C:\Keil\C51\BIN\..\INC\stdio.h" /0






 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 typedef unsigned int size_t;
 
 
 #pragma SAVE
 #pragma REGPARMS
 extern char _getkey (void);
 extern char getchar (void);
 extern char ungetchar (char);
 extern char putchar (char);
 extern int printf   (const char *, ...);
 extern int sprintf  (char *, const char *, ...);
 extern int vprintf  (const char *, char *);
 extern int vsprintf (char *, const char *, char *);
 extern char *gets (char *, int n);
 extern int scanf (const char *, ...);
 extern int sscanf (char *, const char *, ...);
 extern int puts (const char *);
 
 #pragma RESTORE
 
 
 
#line 6 "..\GETLINE.C" /0
 
 
 
 
 
 
 
 
 
 
 
 
 void getline (unsigned char idata *line, unsigned char n)  
 {
 unsigned char cnt = 0;
 unsigned char c;
 
 do  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 *line = c;
 line++;
 cnt++; 
 
 }  while (cnt < n - 1  &&  c != 0x0D);       
 
 *line = 0;                                 
 }
